import get from "lodash/get";

export default {
  // 防止表格错位
  activated() {
    let comp = get(this, "$refs.tableInner.$children[0]", null);
    comp.doLayout();
  },
  methods: {
    /**
     * 处理当前行事件点击
     */
    handleRowClick(row) {
      let comp = get(this, "$refs.tableInner.$children[0]", null);
      if (!comp) return;
      comp.clearSelection();
      comp.toggleRowSelection(row);
    },
  },
};
